<include target="_header.html" />
{@
	$lang->extra_vars1 = '가격';
	$lang->title = '음식이름';
}
<!--%import("../../tpl/filter/insert_food.xml")-->
<form action="./" method="post" onsubmit="return procFilter(this, insert_food)" class="board_write">
	<input type="hidden" name="mid" value="{$mid}" />
	<input type="hidden" name="content" value="{$oDocument->getContentText()}" />
	<input type="hidden" name="document_srl" value="{$document_srl}" />
	<input type="hidden" name="allow_comment" value="Y" />
	<input type="hidden" name="allow_trackback" value="Y" />
    <input type="hidden" name="extra_vars3" class="text" value="{$logged_info->cellphone[0]}{$logged_info->cellphone[1]}{$logged_info->cellphone[2]}" />
	<div class="divFoodAdd">
		<div class="foodreg_top">
			<h3><img src="images/register_food_title.png" /></h3>
		</div>
	    <div class="fill_blank"></div>
			<center>기본정보</center>
		
		<div class="foodreg_middle">
			<table align="center" border="0" class="inputTable">
				<!--@if($logged_info->user_id == "admin")-->
				{@
					$oMemberAdminModel = &getAdminModel('member');
		            $oMemberModel = &getModel('member');
		            $selected_group_srl=239;
		            $output = $oMemberAdminModel->getMemberList();
				}
				<tr>
					<th class="table_title">상점이름</th>
					<td>
						<select name="nick_name">
							<!--@if($output->data)-->
				                <!--@foreach($output->data as $key => $member)-->
				                    {@ $output->data[$key]->group_list = $oMemberModel->getMemberGroups($member->member_srl,0);}
				                    <option value="{$output->data[$key]->nick_name}" <!--@if($oDocument->getNickName()==$output->data[$key]->nick_name)-->selected<!--@end-->>{$output->data[$key]->nick_name}</option>
				                <!--@end-->
				            <!--@endif-->							
						</select>
					</td>
				</tr>
				<!--@end-->
				<tr>
					<th class="table_title">음식이름</th>
					<td>
						<input cond="$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" size="60" value="{htmlspecialchars($oDocument->getTitleText())}" />
						<input cond="!$oDocument->getTitleText()" type="text" name="title" class="iText" title="{$lang->title}" size="60"/>
					</td>
				</tr>
				<tr>
					<th class="table_title">행사전가격</th>
					<td>
						<input type="text" name="extra_vars10" id="price" class="iText userName" value="{htmlspecialchars($oDocument->getExtraValue(10))}" /></td>
				</tr>
				<tr>
					<th class="table_title">가격</th>
					<td>
						<input type="text" name="extra_vars1" id="price" class="iText userName" value="{htmlspecialchars($oDocument->getExtraValue(1))}" /></td>
				</tr>
				<tr>
					<th class="table_title">칼로리</th>
					<td><input type="text" name="extra_vars4" value="{$oDocument->getExtraValue(4)}"></td>
				</tr>
				<!--@if($logged_info->is_admin)-->
				<tr>
					<th class="table_title">옵션</th>
					<td>
						<input type="checkbox" name="extra_vars7" value="hot"> hot
						<input type="checkbox" name="extra_vars7" value="new"> new
					</td>
				</tr>
				<!--@end-->
				<tr>
					<th class="table_title">분류</th>
					<td>
			            <!--@foreach($category_list as $val)-->
			            <input type="checkbox" name="category_srl"<!--@if(!$val->grant)-->disabled="disabled"<!--@endif--> value="{$val->category_srl}" <!--@if($val->grant&&$val->selected||$val->category_srl==$oDocument->get('category_srl'))-->checked="yes"<!--@endif-->>{$val->title}
			            <!--@endforeach-->
			        </td>
			    </tr>
				<tr>
					<th class="table_title">선택옵션</th>
					<td><input type="text" name="extra_vars9" value="{$oDocument->getExtraValue(9)}"></td>
			    </tr>
			    <!--@if($extend_nvalue=="social")-->
			    <tr>
					<th class="table_title">소셜상품 기한</th>
					<td><input type="text" name="extra_vars11" value="{$oDocument->getExtraValue(11)}"></td>
			    </tr>
			    <tr>
					<th class="table_title">소셜상품 목표</th>
					<td><input type="text" name="extra_vars12" value="{$oDocument->getExtraValue(12)}"></td>
			    </tr>
			    <!--@end-->
			    <tr>
					<td colspan="2" align="center">{$oDocument->getEditor()}</td>
				</tr>
			</table>
		</div>
	</div>

	<div style="float:right;">
		<input type="image" src="images/register.png" value="{$lang->cmd_registration}"  />
	</div>
</form>
<include target="_footer.html" />
